#!/bin/sh

sudo apt-get install festvox-kallpc16k;
rosdep install sound_play;

echo "\033[1;31mThis might take forever\033[0m"

echo "\033[1;31mDownloading NiTech voices downloaded!\033[0m"

cd ~/Downloads/
mkdir hts_tmp
cd hts_tmp/

wget -c http://www.cstr.ed.ac.uk/downloads/festival/2.1/festvox_cmu_us_slt_arctic_hts.tar.gz

echo "\033[1;31mNiTech HTS voices downloaded!\033[0m"
echo "\033[1;31mInstalling NiTech HTS voices!\033[0m"

for t in `ls` ; do tar xf $t ; done

echo "\033[1;31mDone unpacking!\033[0m"

sudo mkdir -p /usr/share/festival/voices/us
sudo mv festival/lib/voices/us/* /usr/share/festival/voices/us/

echo "\033[1;31mCleaning up!\033[0m"

cd ../
rm -R hts_tmp/

echo "\033[1;31mDone!\033[0m"
